﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AiFrame.InterfaceLib.Plugins;
using AiFrame.InterfaceLib.Resources;
using AiFrameDemo.CustomerData.Core;

namespace AiFrameDemo.CustomerData.WinForms
{
    public class CustomerDataPlugin: IPlugin
    {
        private CustomerDataController _customerDataController = new CustomerDataController();
        
        public void Load(ICoreInterface ci, string programPath)
        {
            CustomerFactories.CustomerDataViewFactory = new CustomerDataViewFactory();
            _customerDataController.Load(ci, programPath);
        }

        public void Unload()
        {
            _customerDataController.Unload();
        }

        public string GetCaption()
        {
            return "Kundendaten Plugin";
        }
    }
}
